package com.graduation.community_manager.common;

import com.graduation.community_manager.entity.CmUserEntity;

public class MyContextHolder {
    static ThreadLocal<CmUserEntity> userHolder = new ThreadLocal<>();

    public static void set(CmUserEntity cmUser){
        userHolder.set(cmUser);
    }
    public static CmUserEntity get(){
        return userHolder.get();
    }
}
